package com.design.pattern.prototype.shallow;

import lombok.Data;

import java.util.List;

/**
 * @version 1.0
 * @author: CRM_SYSTEM
 * @date: 2022/9/15 23:34
 * @Description:
 */
@Data
public class User implements Cloneable{

    private String name;
    private String gender;
    private Integer age;
    private double weight;
    private List<String> hobbies;


    @Override
    public User clone() throws CloneNotSupportedException {
        return (User)super.clone();
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", weight=" + weight +
                ", hobbies=" + hobbies +
                '}';
    }
}
